package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageBean;
import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.martcap.repository.IMartCapRepository;
import cc.lj.internal.coupons.infrastructure.po.MartCapPO;
import cc.lj.internal.coupons.interfaces.dto.query.MartCapListQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository("martCapRepositoryImpl")
public class MartCapRepositoryImpl implements IMartCapRepository {

    @Resource(name = "mysqlMartCapRepository")
    private IMartCapRepository mysqlMartCapRepository;

    @Override
    public Integer insert(MartCapPO martCapPO) {
        return mysqlMartCapRepository.insert(martCapPO);
    }

    @Override
    public MartCapPO getById(Integer id) {
        return mysqlMartCapRepository.getById(id);
    }

    @Override
    public Integer updateById(MartCapPO martCapPO) {
        return mysqlMartCapRepository.updateById(martCapPO);
    }

    @Override
    public PageInfo<MartCapPO> selectPage(PageParam<MartCapPO> pageParam) {
        return mysqlMartCapRepository.selectPage(pageParam);
    }

    @Override
    public List<MartCapPO> getByIdIn(List idList) {
        return mysqlMartCapRepository.getByIdIn(idList);
    }

}
